package com.wisewin.pose.dao;

import com.wisewin.pose.entity.db.UserDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.*;

@Component
public interface UserDAO {

	public UserDO queryUserById(@Param("id") Integer id);

	public UserDO queryByOpenid(String openid);

	public UserDO queryByOpenidAndOrgId(String openid, Integer orgId);

	public int insert(UserDO userDO);

	public void update(UserDO userDO);

	public void updateAuth(UserDO userDO);

	public int queryUserCount(Map<String, Object> map);

	public List<UserDO> queryUserList(Map<String, Object> map);

	public UserDO queryByPhone(String phone);
}
